<template>
  <div class="title">
    <nav-bar class="shopcart-nav">
      <div slot="left"><img src="~assets/img/jiantou_left.png" @click="toHome"></div>
      <div slot="center">购物车</div>
      <div slot="right"><img src="~assets/img/more.png" style="width: 30px;height: 30px"></div>
    </nav-bar>
    <div class="shopcart-bottom">
      <div class="shopcart-left"><input type="checkbox">&nbsp;&nbsp;&nbsp;&nbsp;全选</div>
      <div class="shopcart-center">总计:￥520.00元</div>
      <div class="shopcart-right"><button>结算(1件)</button></div>
    </div>
  </div>
</template>

<script>
import NavBar from "components/common/navbar/NavBar";
export default {
  name: "Shopcart",
  components: {
    NavBar
  },
  methods: {
    toHome(){
      this.$router.replace("/home");
    }
  }
}
</script>

<style scoped>
.shopcart-nav{
  font-size: 20px;
  border-bottom: 1px #EEEEEE solid;
}
.shopcart-nav div img{
  width: 20px;
  height: 20px;
  vertical-align: middle;
  margin-top: -3px;
}
.shopcart-bottom{
  display: flex;
  position: fixed;
  width: 100%;
  height: 50px;
  bottom: 52px;
  border-top: 2px #EEEEEE solid;
}
.shopcart-bottom div{
  display: inline-block;
  float: left;
}
.shopcart-left{
  text-align: center;
  line-height: 50px;
  width: 20%;
}
.shopcart-left input{
  width: 20px;
  height: 20px;
  vertical-align: middle;
}
.shopcart-center{
  font-size: 18px;
  text-align: center;
  line-height: 50px;
  width: 50%;
}
.shopcart-right{
  text-align: center;
  line-height: 50px;
  width: 30%;
}
.shopcart-right button{
  width: 100%;
  height: 70%;
  background-color: #FF0033;
  border-radius: 20px;
  outline: none;
}
</style>
